﻿using AutoMapper;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zocono.WCS.Domain.DomainRepository;
using Zocono.WCS.Domain.EntityInfo;
using Zocono.WCS.Infrastructure.ApllicationDto.DtoWcsManage;
using Zocono.WMS.Infrastructure.BaseRepository;

namespace Zocono.WCS.Infrastructure.Repository
{
    public class OperateLogInfoRepository:BaseRepository<OperateLogInfo>, IOperateLogInfoRepository
    {
        //public IMapper _Mapper;
        public OperateLogInfoRepository(/*IMapper mapper, IOperateLogInfoRepository iOperateLogInfoRepository,*/SqlSugarClient context = null) : base(context)
        {
            //_Mapper = mapper;
            //_IOperateLogInfoRepository = iOperateLogInfoRepository;
        }





        //public async Task<List<OperateLogInfo>> GetOperateLogInfoAsync(OperateLogInfoDto operateLogInfoDto)
        //{
        //    OperateLogInfo operateLogInfo = new OperateLogInfo();
        //    _Mapper.Map(operateLogInfoDto, operateLogInfo);
        //    var exp=Expressionable.Create
        //    return await _IOperateLogInfoRepository.AsSugarClient().Queryable<OperateLogInfo>().Where(l => l.OperateType == operateLogInfo.OperateType &&
        //    l.OperateTime > operateLogInfo.OperateTimeStart && l.OperateTime < operateLogInfo.OperateTimeEnd)
        //         .Select(l => l)
        //         .ToListAsync();
        //}
    }
}
